
/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} [firstShow] form is shown first time after load
 * @param {JSEvent} [event] the event that triggered the action
 *
 * @properties={typeid:24,uuid:"D3A398D6-4B8C-4F4D-B936-E9B7D60780D3"}
 */
function onShow(firstShow, event) {

	var $cat = 1
	while ($cat <= 5)
	{
		if (ghotel_to_hoteles.categoria_id >= $cat)
		{
			elements['img_estrella_'+$cat].visible = true
		}
		else
		{
			elements['img_estrella_'+$cat].visible = false
		}
		$cat++
	}
}
